/*
 * @Author: Damon Liu
 * @Date: 2024-11-21 10:08:16
 * @LastEditors: Damon Liu
 * @LastEditTime: 2025-04-29 15:40:19
 * @Description: 
 */
import { createRouter, createWebHashHistory } from 'vue-router'
import { routes } from './routes.js';


const router = createRouter({
    history: createWebHashHistory(),
    routes
})

router.beforeEach((to, from, next) => {
    document.title = to?.meta?.title || '日程表'
    next()
})

export default router;